package com.patterns.command.misSystem.command;

import com.patterns.command.misSystem.group.CodeGroup;
import com.patterns.command.misSystem.group.PageGroup;
import com.patterns.command.misSystem.group.RequirementGroup;

/**
 * Created by Xiao Yiyun on 2017/5/16.
 * 抽象命令类
 */
public abstract class Command {
    //把三个组都定义好，子类可以直接使用
    protected RequirementGroup requirementGroup = new RequirementGroup();   //需求组
    protected PageGroup pageGroup = new PageGroup();    //美工组
    protected CodeGroup codeGroup = new CodeGroup();    //代码组

    //只有一个方法，你要我做什么事情
    public abstract void execute();
}
